﻿@{
    ViewBag.Title = "FormView";
    Layout = "~/Views/Shared/_dLayout.cshtml";
        List<Tags> tgs=new List<Tags>();
        tgs.Add(new Tags(){ID=1,Name="Value1"});
        tgs.Add(new Tags(){ID=2,Name="Value2"});
        tgs.Add(new Tags(){ID=3,Name="Value3"});
        tgs.Add(new Tags(){ID=4,Name="Value4"});
        tgs.Add(new Tags(){ID=5,Name="Value5"});
        tgs.Add(new Tags(){ID=6,Name="Value6"});
        var seltags = new int[] { 5, 3 };
        }

@section pageScript
{
      $("#Test").select2(); 
        $("#test2").select2(); 
} 

@section SideBar
{
 <h3>Page Menu</h3>
                <ul class="nav nav-tabs nav-stacked">
                    <li><a href='#'>Another Link 1</a></li>
                    <li><a href='#'>Another Link 2</a></li>
                    <li><a href='#'>Another Link 3</a></li>
                </ul>
}
<div>
@using(Html.BSForm(FormType.Horizontal, "Test Form"))
{
    @Html.BsTextInputWithLable("fName","Full Name",InputSize.input_large)
    @Html.BsTextInputWithLable("Add1","Address Line 1",InputSize.input_xlarge)
    @Html.BsTextInputWithLable("Add2", "Address Line 2", InputSize.input_xlarge)  
    @Html.BsTextInputWithLable("age", "Age", InputSize.input_small )
    @Html.ListBox("Test",new MultiSelectList(tgs,"ID","Name",seltags ))
    @Html.DropDownList("test2",new SelectList(tgs,"ID","Name"))
    using(Html.BSFormButtons())
    {
        @Html.BSButton("btnSave","Save","",true,ButtonType.submit)
        @Html.BSButton("btnReset", "Reset", "", false , ButtonType.reset )
        @Html.BSButton("btnBack", "Back", "MoveBack();", false , ButtonType.Normal )
    }
} 

@using (Html.BeginForm()) 
{
    @Html.TextBox("asdas")
   <button type='submit'>Submit</button>
                          
}
</div>